export async function checkVersion() {
  try {
    const res = await fetch('/api/version')
    const data = await res.json()
    return data.version
  } catch (error) {
    return '1.0.0'
  }
}